<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>高考倒计时</title>
    <style>
        body {
            font-family: 'Microsoft YaHei', sans-serif;
            display: flex;
            justify-content: center;
            align-items: center;
            height: 100vh;
            margin: 0;
            background: linear-gradient(135deg, #667eea, #764ba2);
            color: white;
        }

        .countdown-box {
            text-align: center;
        }

        .title {
            font-size: 36px;
            margin-bottom: 20px;
        }

        .time {
            font-size: 60px;
            font-weight: bold;
            margin: 20px 0;
        }

        .desc {
            font-size: 24px;
            color: #f0f0f0;
        }
    </style>
</head>
<body>
    <div class="countdown-box">
        <div class="title">距离高考还有</div>
        <div class="time" id="countdown"></div>
        <div class="desc">乾坤未定，你我皆是黑马！</div>
    </div>

    <script>
        function updateCountdown() {
            // 设定高考时间（以2026年6月7日为例，可自行修改）
            const examDate = new Date("2026-06-07T09:00:00").getTime();
            const now = new Date().getTime();
            const diff = examDate - now;

            if (diff <= 0) {
                document.getElementById("countdown").textContent = "高考加油！";
            } else {
                const days = Math.floor(diff / (1000 * 60 * 60 * 24));
                const hours = Math.floor((diff % (1000 * 60 * 60 * 24)) / (1000 * 60 * 60));
                const minutes = Math.floor((diff % (1000 * 60 * 60)) / (1000 * 60));
                document.getElementById("countdown").textContent = 
                    `${days}天${hours}小时${minutes}分钟`;
            }
        }

        // 初始加载和每秒更新
        updateCountdown();
        setInterval(updateCountdown, 1000);
    </script>
</body>
</html>